package html.states.home;
import data.Task;
import html.states.home.notifications.NotificationManager;
import html.util.Container;
import data.UserData;

/**
 * ...
 * @author Felipe Manga
 */

class Home extends Container
{

	public function new() 
	{
		super();
		this.addChild( new NotificationManager() );
	}
	
	@slot function onEnterState( data:UserData ):Void
	{
		this.signalUp("autoPollEnabled", [true]);
	}
	
	@slot override function onExitState():Void
	{
		super.onExitState();
		this.signalUp("autoPollEnabled", [false]);
	}
	
	@slot function notifyNewTask( tasks:Array<Task> ):Void this.signalDown( "notifyNewTask", tasks )
}